package com.supergzt.enums;

import lombok.Getter;

/**
 * @author 张钧
 * @Description
 * @create 2022-10-21 19:41
 */
@Getter
public enum HttpEnum {
	//失败信息
	FAIL(500, "失败"),
	ILLEGAL_TOKEN(508, "令牌格式错误"),
	OTHER_CLIENTS_LOG(512, "其他客户端登录"),
	TOKEN_EXPIRED(514, "令牌过期"),
	//成功信息
	SUCCESS(200, "成功");
	final Integer code;
	final String message;

	HttpEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}
}
